#!/bin/bash
#
# $URL: http://10.0.20.93/repos/scripts/trunk/mirror/update_mirror.sh $
# $Id: update_mirror.sh 151 2007-03-02 13:56:46Z steven $
# $Rev: 151 $
# $Date: 2007-03-02 14:56:46 +0100 (vr, 02 mrt 2007) $
# $Author: steven $
#
#

LOCATION=/home/mirrorer/debian-mirrors
# Deze file heb ik op PK bijgewerkt
# deze file heb ij voorzien van commentaar
## 
## Security:
##
echo
echo "`basename $0`: Upgrading Debian security repository ..."
debmirror  -v \
  $LOCATION/debian-security/ \
    --no-check-gpg\
    -p \
    --nosource \
    --host=security.debian.org \
    --root=debian-security/ \
    --method=http \
    --arch=i386,amd64,powerpc \
    --section=main,contrib,non-free \
    --dist=wheezy/updates
echo "`basename $0`: Upgrading Debian security repository: Done."

##
echo
echo "`basename $0`: Upgrading Debian default repository ..."
debmirror  -v \
   $LOCATION/debian/ \
   -p \
    --no-check-gpg\
  --nosource \
   --host=dl.xs4all.nl \
   --root=pub/mirror/debian \
   --method=http \
  --arch=i386,amd64,powerpc \
   --section=main,contrib,non-free,main/debian-installer \
   --dist=wheezy \
   --getcontents
echo "`basename $0`: Upgrading Debian default repository: Done."
